package com.yanqu.road.entity.activity.snowgarden;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.utils.date.DateHelper;

@FieldTypeAnnotation(tableName = "t_u_activity_snow_garden_record", desc = "冰雪协助记录")
public class UserSnowGardenVisitRecord extends DataObject {
    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int activityId;
    @FieldTypeAnnotation(select = true, update = true, desc = "用户id")
    private long userId;
    @FieldTypeAnnotation(desc = "阶段")
    private int period;
    @FieldTypeAnnotation(desc = "对方id")
    private long targetUserId;
    @FieldTypeAnnotation(desc = "协助类型")
    private int visitType;
    @FieldTypeAnnotation(desc = "地块id，门客，美女")
    private int objectId;
    @FieldTypeAnnotation(desc = "获得分数")
    private int addScore;
    @FieldTypeAnnotation(desc = "协助时间")
    private long visitTime;
    @FieldTypeAnnotation(desc = "是否有跨服返回")
    private int crossBack;

    public UserSnowGardenVisitRecord() {
    }

    public UserSnowGardenVisitRecord(int activityId, long userId, int period, long targetUserId, int visitType, int objectId, int addScore, int crossBack, long visitTime) {
        this.activityId = activityId;
        this.userId = userId;
        this.period = period;
        this.targetUserId = targetUserId;
        this.visitType = visitType;
        this.objectId = objectId;
        this.addScore = addScore;
        this.visitTime = visitTime;
        this.crossBack = crossBack;
        setInsertOption();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getTargetUserId() {
        return targetUserId;
    }

    public void setTargetUserId(long targetUserId) {
        this.targetUserId = targetUserId;
    }

    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }

    public int getObjectId() {
        return objectId;
    }

    public void setObjectId(int placeId) {
        this.objectId = placeId;
        setUpdateOption();
    }

    public int getAddScore() {
        return addScore;
    }

    public void setAddScore(int addScore) {
        this.addScore = addScore;
        setUpdateOption();
    }

    public long getVisitTime() {
        return visitTime;
    }

    public void setVisitTime(long visitTime) {
        this.visitTime = visitTime;
        setUpdateOption();
    }

    public int getVisitType() {
        return visitType;
    }

    public void setVisitType(int visitType) {
        this.visitType = visitType;
    }

    public int getCrossBack() {
        return crossBack;
    }

    public void setCrossBack(int crossBack) {
        this.crossBack = crossBack;
        setUpdateOption();
    }
}
